<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<meta HTTP-EQUIV="expires" CONTENT="0">
<title>修改目的地特色项信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">
		<table class="fitem">
			<tr>
				<td><label>中文标题: </label></td>
				<td><input name="zhname" class="easyui-validatebox"
					data-options="required:true,validType:'length[0,64]'"
					value="${featureItem.zhname }" />
				</td>
				<td><label>英文标题: </label></td>
				<td><input name="enname" class="easyui-validatebox"
					data-options="required:true,validType:'length[0,128]'"
					value="${featureItem.enname }" />
				</td>
			</tr>
			<tr>
				<td><label>地址: </label></td>
				<td><input name="address" class="easyui-validatebox"
					data-options="validType:'length[0,128]'"
					value="${featureItem.address }" /></td>
				<td><label>电话: </label></td>
				<td><input name="tel" class="easyui-validatebox"
					data-options="validType:'length[0,64]'" value="${featureItem.tel }" />
				</td>
			</tr>
			<tr>
				<td><label>价格: </label></td>
				<td><input name="price" class="easyui-validatebox"
					data-options="validType:'length[0,32]'"
					value="${featureItem.price }" /></td>
				<td><label>邮箱: </label></td>
				<td><input name="email" class="easyui-validatebox"
					data-options="validType:'email'" value="${featureItem.email }" /></td>
			</tr>
			<tr>
				<td><label>营业时间: </label></td>
				<td><input name="openTime" class="easyui-validatebox"
					data-options="validType:'length[0,64]'"
					value="${featureItem.openTime }" /></td>
				<td><label>提示: </label></td>
				<td><input name="note" class="easyui-validatebox"
					data-options="validType:'length[0,64]'"
					value="${featureItem.note }" /></td>
			</tr>
			<tr>
				<td><label>菜单: </label></td>
				<td><input name="menu" class="easyui-validatebox"
					data-options="validType:'length[0,64]'"
					value="${featureItem.menu }" /></td>
				<td><label>特色项链接地址: </label></td>
				<td><input name="url" class="easyui-validatebox"
					data-options="validType:'length[0,256]'"
					value="${featureItem.url }" /></td>
			</tr>
			<tr>
				<td><label>纬度: </label></td>
				<td><input name="lat" class="easyui-validatebox"
					validType="numberbox" value="${featureItem.lat }" /></td>
				<td><label>经度: </label></td>
				<td><input name="lng" class="easyui-validatebox"
					validType="numberbox" value="${featureItem.lng }" /></td>
			</tr>

			<tr>
				<td><label>停留时长: </label></td>
				<td><input name="stayTime" class="easyui-validatebox"
					value="${featureItem.stayTime }" validType="numberbox" />分</td>
				<td><label>属性是否可用:</label>
				</td>
				<td><select name="propertyVisible">
						<option value="1"
							<c:if test="${featureItem.propertyVisible eq 1 }" >selected="selected"</c:if>>可用</option>
						<option value="0"
							<c:if test="${featureItem.propertyVisible eq 0 }" >selected="selected"</c:if>>不可用</option>
				</select>
				</td>
			</tr>
			<tr>
				<td><label>版权所有：</label></td>
				<td><input name="copyright"  class="easyui-validatebox"
					data-options="validType:'length[0,64]'" value="${featureItem.copyright }"></td>
				<td><label>失效时间：</label></td>
				<td><input name="expireTime" class="easyui-datetimebox" value="<fmt:formatDate value='${featureItem.expireTime }' pattern='yyyy-MM-dd HH:mm:ss' />" /></td>
			</tr>
			<tr>
				<td><label>删除状态</label></td>
				<td><select name="deleted">
					<option value="0" <c:if test="${featureItem.deleted == 0 }">selected="selected"</c:if>>未删除</option>
					<option value="1" <c:if test="${featureItem.deleted == 1 }">selected="selected"</c:if>>已删除</option>
				</select></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td><label>特色项新图片:</label></td>
				<td><input name="imagepart" type="file"
					class="easyui-validatebox"></td>
				<td><label>所属特色类别Id:</label></td>
				<td><input id="featureCategoryId" name="featureId"
					required="true" /></td>
			</tr>
			<tr>
				<td><label>特色项新logo:</label></td>
				<td><input name="logoFile" type="file"
					class="easyui-validatebox"></td>

			</tr>
			<tr>
				<td><label>描述摘要:</label></td>
				<td colspan="3"><textarea name="summary"
						id="featureItemSummary" data-options="validType:'length[0,64]'"
						style="width: 392px; height: 80px" class="easyui-validatebox">${featureItem.summary }</textarea>
				</td>

			</tr>
			<tr>
				<td><label>特色项描述:</label></td>
				<td colspan="3"><textarea name="content" id="featureItemDesc"
						data-options="validType:'length[0,2048]'"
						style="width: 392px; height: 80px" class="easyui-validatebox">${featureItem.content }</textarea>
				</td>

			</tr>

			<tr>
				<td>特色项旧图片：</td>
				<td colspan="3"><img src="${image_domain}${featureItem.source}"
					width=300 height=150></td>
				<input type="hidden" value="${featureItem.source }" name="source" />
				<input type="hidden" value="${featureItem.logo }" name="logo" />
				<input type="hidden" value="${featureItem.featureItemId }"
					name="featureItemId" />
				<input type="hidden" value="${featureItem.featureId }"
					name="oldFeatureId" />
				<input type="hidden" value="${featureItem.featureCategoryId }"
					name="featureCategoryId" />
				<input type="hidden" value="${featureItem.infoId }" name="infoId" />
				<input type="hidden" value="${featureItem.imageId }" name="imageId" />
				<input type="hidden" value="${featureItem.dataId}" name="dataId" />
				<input type="hidden" value="${featureItem.infoType}" name="infoType" />

			</tr>
			<tr>
				<td>特色项logo：</td>
				<td colspan="3"><img src="${image_domain}${featureItem.logo}"
					width=300 height=150></td>

			</tr>
			<input type="hidden" name="oldExpireTime" value="<fmt:formatDate value='${featureItem.expireTime }' pattern='yyyy-MM-dd HH:mm:ss' />" />
			
		</table>


	</form>



	<script type="text/javascript">
		//初始化目的地特色类别信息
		$('#featureCategoryId').combobox({
			url : '${cpath }/admin/dest/feature/allcategory/list',
			valueField : 'featureCategoryId',
			textField : 'featureCategoryName',
			editable : false,
			value : '${featureItem.featureCategoryId}'
		});
		$('#featureItemDesc').ceditor();
		$('#featureItemSummary').ceditor();
	</script>
	<style type="text/css">
#fm {
	margin: 0;
	padding: 40px 40px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>